package drone.basis.validate ;

import javax.validation.ConstraintValidator ;
import javax.validation.ConstraintValidatorContext ;

import drone.basis.annotaion.Currency ;
import drone.basis.dictionary.CurrencyDict ;

public class CurrencyValidate implements ConstraintValidator < Currency , String >
{

	@Override
	public boolean isValid (
			String value ,
			ConstraintValidatorContext constraintValidatorContext
	)
	{

		if ( CurrencyDict.exist ( value ) )
		{
			return true ;
		}

		return false ;
	}

}
